package org.hepeng.workx.util.proxy;

import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @author he peng
 */
public class CglibInvocation extends AbstractInvocation {

    private MethodProxy proxy;

    public CglibInvocation(Object target, Method method, Object[] args , MethodProxy proxy) {
        super(target, method, args);
        this.proxy = proxy;
    }

    @Override
    public Object invoke() throws Throwable {
        return this.proxy.invokeSuper(super.target , super.args);
    }
}
